import { createApp } from 'vue'
import './style.css'
import 'element-plus/theme-chalk/display.css'
import App from './App.vue'
import md5 from 'js-md5';
import router from './router/index.js';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import "element-plus/dist/index.css";
import piniaPluginPersist from 'pinia-plugin-persist';
// element dark(内置暗黑模式)
import "element-plus/theme-chalk/dark/css-vars.css";
// custom element dark(自定义暗黑模式)
import "@/styles/theme/element-dark.css";
import {createPinia} from 'pinia';

const app = createApp(App)
app.use(router)
app.use(createPinia().use(piniaPluginPersist))
app.mount('#app');
for (const [key,component]  of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
